/*
 * @Author: HotSuitor
 * @Date: 2020-03-12 10:45:37
 * @LastEditors: hs
 * @LastEditTime: 2020-03-12 11:25:06
 * @Description: hotsuitor@qq.com
 */
package main

import (
	"fmt"
)

type Book struct {
	title string
	author string
	subject string
	book_id string
}

func main() {
	var book2 Book
	book3 := Book{title: "JavaScript设计模式", author: "张榕"}
	book2.title = "Hotsuitor"
	fmt.Println(Book{title: "go起飞", author: "无名氏", subject: "go编程书", book_id: "177074"})
	fmt.Println(Book{title: "算法", subject: "算法是内功"})
	fmt.Println(book2.title)
	fmt.Println(book3)
}
